package com.todo.mapper;

import com.todo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author CAROL
 * @since 2023-9-5
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select count(*) from u_base_info")
    int count();

    /**
     * 通过uid查询用户信息
     * @param uid
     */
    @Select("select * from u_base_info where uid = #{uid}")
    User selectByUid(String uid);
}
